import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import ElementPlus from 'element-plus'
import locale from "element-plus/es/locale/lang/zh-cn"
import '@/assets/styles/common.scss'
import 'element-plus/dist/index.css'
import '@/assets/styles/iconfont.css'
import Filters from '@/utils/filters'

const app = createApp(App)
app.config.globalProperties.$filters = Filters
app.use(router)
app.use(createPinia())
app.use(ElementPlus, { locale })
declare module 'vue' {
  export interface ComponentCustomProperties {
    $filters: Filter
  }
}
app.mount("#app")